/*
 * Copyright (C) 2016 Zhejiang DRORE Technology CO.,LTD.
 * All rights reserved.
 * Official Web Site: http://www.drore.com.
 * Developer Web Site: http://open.drore.com.
 */
package com.drore.cloud.sdkjdbc.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/***
 * Pagination
 * @since:cloud-sdk 1.0 
 * @author <a href="mailto:xiaoymin@foxmail.com">xiaoymin@foxmail.com</a> 
 * 2016年3月17日 下午2:49:40
 */
public class Pagination<T> implements Serializable{
	private int count=0;
	private int page_size=10;
	private int current_page=1;
	private List<T> data;
	private int total_page;
	/***
	 * add by xiaoymin@foxmail.com 2016-8-5 12:33:48
     */
	private Integer errCode;
	private Boolean success=true;
	private String message;
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPage_size() {
		return page_size;
	}
	public void setPage_size(int page_size) {
		this.page_size = page_size;
	}
	public int getCurrent_page() {
		return current_page;
	}
	public void setCurrent_page(int current_page) {
		this.current_page = current_page;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	public int getTotal_page() {
		return total_page;
	}
	public void setTotal_page(int total_page) {
		this.total_page = total_page;
	}

	public Integer getErrCode() {
		return errCode;
	}

	public void setErrCode(Integer errCode) {
		this.errCode = errCode;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Pagination(int page_size, int current_page) {
		super();
		this.page_size = page_size;
		this.current_page = current_page;
		this.data=new ArrayList();
	}
	public Pagination() {
		super();
		//空数组
		//2016-8-10 15:41:59
		this.data=new ArrayList();
	}
	

}
